import axios from 'axios'
export function login(username, password,callback) {
  const data = {
    username,
    password
  };
  axios.post('apis/mobileLogin',data)
    .then(function (response) {
      callback(response.data);
    })
    .catch(function (error) {
      console.log(error);
    });
}

export function logout() {
  axios.post('apis/logout')
    .then(function (response) {
      callback(response.data);
    })
    .catch(function (error) {
    })
}
